package com.example.demo.controller;

import com.example.demo.mapper.SslMapper;
import com.example.demo.module.MysqlSession;
import com.example.demo.module.User;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("api/v1")
@Slf4j
public class SslController {

    @Autowired
    private SslMapper sslMapper;

    @CrossOrigin
    @RequestMapping(value = "/ssl", method = RequestMethod.GET)
    public MysqlSession getSsl() {
        return sslMapper.getssl();
    }

}
